package com.aaa.tool;

public enum StatusCode{

  /**
   * 客户端错误  2
   * 服务端错误  3
   */
  AUTHORITY_ERROR(20006,"权限不足"),
  ADMIN_NULL(20007,"用户不存在"),
  ADMIN_WRONGPASSWORD(20008,"管理员密码不正确");
  //成功
  public static final int OK = 20000;

  //失败
  public static final int ERROR = 20001;

  //用户名或密码错误
  public static final int LOGINERROR = 20002;

  //权限不足
  public static final int ACCESSERROR = 20003;

  //远程调用失败
  public static final int REMOTEERROR = 20004;

  //重复操作
  public static final int REPERROR = 20005;

  //权限不足
  public static final int AUTHORITYERROR=20006;
  //错误码
  public Integer code;
  //提示信息
  public String message;

  //构造函数
  StatusCode(Integer code,String message){
    this.code = code;
    this.message = message;
  }
  public Integer getCode() {
    return code;
  }

  public String getMessage() {
    return message;
  }
}
